<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:c="http://www.w3.org/1999/XSL/Transform">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
    <div th:replace="common/IncludeTop">
    </div>

    <div id="Content">
        <div id="BackLink">
            <a href="/catalog/view">Return to Main Menu</a>
        </div>

        <div id="Catalog">

            <table>
                <tr>
                    <th>&nbsp;</th>
                    <th>Product ID</th>
                    <th>Name</th>
                </tr>
                    <tr th:each="product:${productList}">
                        <td>
                            <img th:src="@{../{filename}(filename=${product.description})}" alt="description">
                            <table th:text="${product.descriptionWords}">Description Words</table>
                        </td>
                        <td>
                            <b>
                                <font color="BLACK"><a th:href="@{'/catalog/viewProduct?productId='+${product.productId}}" th:text="${product.productId}">productId</a></font>
                            </b>
                        </td>
                        <td th:text="${product.name}">
                            Product's name
                        </td>
                    </tr>
            </table>
        </div>
    </div>

    <div th:replace="common/IncludeBottom">
    </div>
</body>
</html>